package dto

import "com.haojuetrace/actualCombat/model"

type UserDto struct {
	Name     string `json:"name"`
	PhoneNum string `json:"phonenum"`
}

/*
数据传输对象
*/
func ToUserDto(user *model.Users) *UserDto {
	return &UserDto{
		Name:     user.Name,
		PhoneNum: user.PhoneNum,
	}
}
